package com.duoec.doc.controller;

import com.duoec.doc.dto.request.BaseIdRequest;
import com.duoec.doc.dto.response.BasePageResponse;
import com.duoec.doc.dto.response.BaseResponse;
import com.duoec.doc.dto.response.UserDto;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author xuwenzhen
 */
@RestController
@RequestMapping("/api/user2")
public class User2ApiController {
    /**
     * 用户列表2
     *
     * @return 用户列表
     * @c 123
     */
    @GetMapping("/list2")
    public BaseResponse<BasePageResponse<UserDto>> list(BaseIdRequest request) {
        return BaseResponse.success(null);
    }

    /**
     * 删除用户
     *
     * @param id 用户ID
     */
    @GetMapping("/delete/{id:\\d+}")
    public BaseResponse<Boolean> delete(
            @PathVariable Long id
    ) {
        return BaseResponse.success(true);
    }
}
